from typing import Optional, Union

from pydantic import BaseModel, Field


class GenerateBackImageSchemaCreate(BaseModel):

    path: str = Field(description='路径')
    name: str = Field(description="名字")


class GenerateBackImageSchemaRes(BaseModel):

    id: int = Field(description='ID')
    path: str = Field(description='路径')
    name: str = Field(description="名字")


class GenerateBackImageSchemaIDList(BaseModel):
    id: list[int] = Field(description='ID列表')


class GenerateBackImageSchemaUpdate(BaseModel):

    name: str = Field(description="名字")
